package leeon.kaixin.wap.models;

import leeon.mobile.BBSBrowser.utils.HTMLUtil;


public class StatusPic extends Status {

	private static final long serialVersionUID = -9080980899279481111L;
	
	private String url;
	
	private String pid;
	
	private String puid;
	
	
	public String getPid() {
		return pid;
	}


	public void setPid(String pid) {
		this.pid = pid;
	}

	
	public String getUrl() {
		return url;
	}



	public void setUrl(String url) {
		this.url = url;
	}



	public String getPuid() {
		return puid;
	}


	public void setPuid(String puid) {
		this.puid = puid;
	}


	@Override
	protected void parseContentHtml(String htmlDiv) {
		String h = HTMLUtil.findStr(htmlDiv, " ", "<br />");
		pid = HTMLUtil.findStr(htmlDiv, "pid=", "\">");
		puid = HTMLUtil.findStr(htmlDiv, "puid=", "&amp;");
		url = HTMLUtil.findStr(htmlDiv, "<img src=\"", "\"");
		
		super.parseContentHtml(HTMLUtil.removeHtmlTag(h));
	}

	@Override
	public StatusType getType() {
		return StatusType.照片;
	}
	
}
